package com.starhub.application.agent.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "ai.concurrency")
public class ConcurrencyConfig {
    private int perAgentLimit = 10;  // 每个智能体的并发上限
    private int totalLimit = 100;    // 总体并发上限

    public int getPerAgentLimit() {
        return perAgentLimit;
    }

    public void setPerAgentLimit(int perAgentLimit) {
        this.perAgentLimit = perAgentLimit;
    }

    public int getTotalLimit() {
        return totalLimit;
    }

    public void setTotalLimit(int totalLimit) {
        this.totalLimit = totalLimit;
    }
} 